import Vue from 'vue';
import App from './App.vue';

import vueRouter from 'vue-router';
Vue.use(vueRouter);

import vueResource from 'vue-resource';
Vue.use(vueResource);

import 'mint-ui/lib/style.min.css';
import minUI from 'mint-ui';
Vue.use(minUI);

import '../statics/mui/css/mui.css';
import '../statics/css/site.css';

import moment from 'moment';
Vue.filter('datefmt',function(input,fmtstring){
    return moment(input).format(fmtstring);
})



import home from './components/Home.vue';
import shopcar from './components/shopcar/car.vue';
import newslist from './components/news/newslist.vue';
import newsinfo from './components/news/newsinfo.vue';
var router1 = new vueRouter({
    linkActiveClass: 'mui-active',
    routes: [
        {
            path: '/home',
            component: home
        },
        {
            path: "/shopcar",
            component: shopcar
        },
        {
            path: "/news/newslist",
            component: newslist
        },
        {
            path: "/news/newsinfo",
            component: newsinfo
        }

    ]
})


new Vue({
        el: "#app",
        router: router1,
        render: c=>c(App)
})